package designclass;

/**
 * @BelongsProject: DataStructures
 * @BelongsPackage: com
 * @Author: 江岸
 * @CreateTime: 2021-04-19 19:52
 * @Description:
 */
public class HasStatic {
    public HasStatic() {BasicFun();}
    public void BasicFun(){
        System.out.println("bascFun");
    }

}

class SubClass extends  HasStatic{
    public SubClass() {BasicFun();}

    @Override
    public void BasicFun() {
        System.out.println("subFun");
    }

    public static void main(String[] args) {
        HasStatic obj = new SubClass();
        obj.BasicFun();
    }
}

